package com.zjitc.dao;

import com.zjitc.model.Cart;
import java.util.List;
import org.apache.ibatis.annotations.Param;

/**
 * Create by IntelliJ IDEA
 *
 * @author: jsonor
 * @date-Time: 2018/4/26 16:37
 * @description:
 */
public interface CartDao {

  void add(@Param("uid") String uid, @Param("pid") String pid, @Param("count") String count);

  List<Cart> checkCartIsNull(@Param("uid") String uid);

  void removeProduct(@Param("pid") String pid);

  void clearCart(@Param("uid") String uid);

  Cart findPid(String pid);

  void updateCount(@Param("count") String count,@Param("pid") String pid);

}
